
using System;
using System.Web;
using System.Web.UI;


namespace webpman
{
	
	
	public partial class @delete : System.Web.UI.Page
	{
		
		protected void Page_Load(object sender, EventArgs e)
        {
			
			// Manager for generic objects, settings, languages and skins
			General GeneralClass = new General();
						
			// Update current webpage with right settings
			Page MyPage = this;
			GeneralClass.SetEnvironment(ref MyPage);
			this.Page = MyPage;
			
			// Init DB and set GeneralClass Object on Master Page
			GeneralClass.DBOpen();
			((master1)this.Master).MasterGeneral = GeneralClass;
			
			
			// Code....
			string RetMsg = GeneralClass.DBDelete(Request.QueryString["object"],
			                                      Session["USER"].ToString(),
			                                      Session["AUTH"].ToString(),
			                                      Request.QueryString);
			
			if (RetMsg != "")
				resultdiv.InnerHtml = RetMsg;
			else
				Response.Redirect(Request.QueryString["callpage"].Replace("_-_","&"));

			
			
        }
	}
}
